package com.chicken.service.impl;

import com.chicken.entity.User;
import com.chicken.mapper.UserMapper;
import com.chicken.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public String getPassword(String userName) {
        return userMapper.getPassword(userName);
    }

    @Override
    public User getInfo(String userName) {
        return userMapper.getInfo(userName);
    }

    @Override
    public List<User> getList(User user) {
        return userMapper.getList(user);
    }
}
